package com.peenongsaban.freelance.service;

import java.util.Vector;

import com.peenongsaban.freelance.bean.AptitudeTypeBean;
import com.peenongsaban.freelance.bean.PostJobBean;
import com.peenongsaban.freelance.dao.JobPageDAO;
import com.peenongsaban.freelance.dao.impl.JobPageDAOImpl;
/*
 * List aptitude type
 * List job urgent
 * List job most popular
 */
public class JobPageService {

	
	public Vector<AptitudeTypeBean> getListAptitudeType(){
		Vector<AptitudeTypeBean> vec = new Vector<AptitudeTypeBean>();
		JobPageDAO dao = new JobPageDAOImpl();
		vec = dao.listAptitudeType();
		return vec;
	}
	
	public Vector<PostJobBean> getListJobUrgent(){
		Vector<PostJobBean> vec = new Vector<PostJobBean>();
		JobPageDAO dao = new JobPageDAOImpl();
		vec = dao.listUrgentJob();
		return vec;
	}
	
	public Vector<PostJobBean> getListJobRecommended(){
		Vector<PostJobBean> vec = new Vector<PostJobBean>();
		JobPageDAO dao = new JobPageDAOImpl();
		vec = dao.listRecommendedJob();
		return vec;
	}

}
